﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using Models;
using BLL;

namespace Web
{
    public partial class career : System.Web.UI.Page
    {
        public string content = "";

        //public ArrayList list = AboutAndCareerPicLogic.GetCareerPicList();

        protected void Page_Load(object sender, EventArgs e)
        {
            CareerInfoDataBind();
            BindCareerContent();
            BindCareerPics();
            Page.Title = "招贤";
        }
        
        public void BindCareerContent()
        {
            content = AboutAndCareerContentLogic.GetCareerContent();

        }

        public void BindCareerPics()
        {
            List<AboutAndCareerPic> pics = AboutAndCareerPicLogic.GetCareerPicList();
            CareerPicRpt.DataSource = pics;
            CareerPicRpt.DataBind();
        }
        public void CareerInfoDataBind()
        {
            List<CareerInfo> list = CareerInfoLogic.GetAllCareerInfo();
            if (list == null)
            {
                list = new List<CareerInfo>();
                list.Add(new CareerInfo());
            }
            CareerList.DataSource = list;
            CareerList.DataBind();
        }
    }
}
